<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\web\View;

/* @var $this yii\web\View */
/* @var $model app\models\MaterialborrowModel */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="materialborrow-model-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'stu_id')->textInput(['maxlength' => true,'value'=>$stu_id,
    		'readonly'=>true,
    ]) ?>

   <?= $form->field($model, 'stu_name')->textInput(['maxlength' => true,'value'=>$stu_name,
    		'readonly'=>true,
    ]) ?>

    <?= $form->field($model, 'activitytitle')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'material')->dropDownList($materials) ?>

    <?= $form->field($model, 'telephone')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'time')->textInput(['maxlength' => true]) ?>


    <?= $form->field($model, 'remark')->textInput(['maxlength' => true]) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? '添加' : '修改', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
